package com.yunnuo.cmsmessage.entity;

import com.yunnuo.system.comm.entity.IdEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * cms 信息
 *
 * @author 魏洪福（15064000912@163.com）
 * @create 2018-09-28-14:31
 */
@Entity
@Table(name="CMS_MESSAGE")
public class CMSMessage extends IdEntity {

    /** 标题 */
    private String title;

    /** 操作人员 */
    private String userId;

    /** 操作人员中文名 */
    private String userRealName;

    /** 三个控制权限的条件：人员、部门、角色 */
    private String rightUserId;
    private String rightDeptId;
    private String rightRoleId;

    /** 具体内容 */
    private String content;

    /** 状态 0.过时；1.发布；2.删除 */
    private Integer status;

    /** 优先级 1-9 数字大的优先 */
    private Integer grade;

    //创建时间
    private Date createTime;
    //修改时间
    private Date updateTime;

    @Override
    public String toString() {
        return "CMSMessage{" +
                "title='" + title +
                ", userId='" + userId +
                ", userRealName='" + userRealName +
                ", rightUserId='" + rightUserId +
                ", rightDeptId='" + rightDeptId +
                ", rightRoleId='" + rightRoleId +
                ", content='" + content +
                ", status=" + status +
                ", grade=" + grade +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserRealName() {
        return userRealName;
    }

    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }

    public String getRightUserId() {
        return rightUserId;
    }

    public void setRightUserId(String rightUserId) {
        this.rightUserId = rightUserId;
    }

    public String getRightDeptId() {
        return rightDeptId;
    }

    public void setRightDeptId(String rightDeptId) {
        this.rightDeptId = rightDeptId;
    }

    public String getRightRoleId() {
        return rightRoleId;
    }

    public void setRightRoleId(String rightRoleId) {
        this.rightRoleId = rightRoleId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
